// 这里我们统一封装自定义指令

export const errimg = {
  inserted: function(dom, option) {
    dom.onerror = function() {
      dom.src = option.value;
    };
  }
};

export const test1 = {
    inserted:function(dom,option){
        console.log('自定义指令1');
    }
}

export const test2 = {
    inserted:function(dom,option){
        console.log('自定义指令2');
    }
}